package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CpcCardMapper;
import com.ruoyi.system.domain.CpcCard;
import com.ruoyi.system.service.ICpcCardService;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class CpcCardServiceImpl implements ICpcCardService 
{
    @Autowired
    private CpcCardMapper cpcCardMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public CpcCard selectCpcCardById(Long id)
    {
        return cpcCardMapper.selectCpcCardById(id);
    }

    /**
     * 查询列表
     * 
     * @param cpcCard 
     * @return 
     */
    @Override
    public List<CpcCard> selectCpcCardList(CpcCard cpcCard)
    {
        return cpcCardMapper.selectCpcCardList(cpcCard);
    }

    /**
     * 新增
     * 
     * @param cpcCard 
     * @return 结果
     */
    @Override
    public int insertCpcCard(CpcCard cpcCard)
    {
        return cpcCardMapper.insertCpcCard(cpcCard);
    }

    /**
     * 修改
     * 
     * @param cpcCard 
     * @return 结果
     */
    @Override
    public int updateCpcCard(CpcCard cpcCard)
    {
        return cpcCardMapper.updateCpcCard(cpcCard);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteCpcCardByIds(Long[] ids)
    {
        return cpcCardMapper.deleteCpcCardByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteCpcCardById(Long id)
    {
        return cpcCardMapper.deleteCpcCardById(id);
    }
}
